
<#assign cache=JspTaglibs["/WEB-INF/tld/oscache.tld"] /> 

<#include "/WEB-INF/template/mp/title.ftl" />

<link rel="stylesheet" type="text/css" href="${base}/mp/css/brands.css" media="all"/>
<link rel="stylesheet" type="text/css" href="${base}/mp/css/top.css" media="all" />
<link rel="stylesheet" type="text/css" href="${base}/mp/css/style_info.css" media="all"  />
<script type="text/javascript" src="${base}/mp/js/jquery-1.7.min.js"></script>
<script type="text/javascript" src="${base}/mp/js/jquery.validate.js"></script>
<script type="text/javascript" src="${base}/mp/js/jquery.raty.min.js"></script>
<script type="text/javascript" src="${base}/js/img_onerror.js"></script>
<script type="text/javascript" src="${base}/mp/js/comment.js"></script>
</head>
<body>

<#include "/WEB-INF/template/mp/menu_bar.ftl" />

<div id="wrap">

<#include "/WEB-INF/template/mp/header_bar_brand_commend.ftl" />
  
  
  <div class="center_content">
    <div class="left_content">
    
      <#if comment??>
    
      <div class="title">
      	<span class="title_icon">
      	品牌[ <a href="${base}/brand.html?id=${(comment.brand.id)!'0'}">${(comment.brand.name)!'未命名'} </a>]的评价：
      </div>
      <div class="feat_prod_box_details">
		  <div class="comment_div">
	        <div class="comment_content">
		      	<div class="comment_user">
		      		<div align="center"><img class="user_pic" src="${base}/images/default_user_ico.jpg" /></div>
		      		<div align="center"> ${(comment.creator)!'匿名网友'} </div>
		      		<!--<div align="center">积分：55</div>-->
		      	</div>
		      	<div class="comment_and_reply">
		        	<div class="comment_assess">
			        	<div class="div_overall_appraise">
			        		<span class="overall_appraise">整体评价：
			        		<#if (comment.overallAppraise)??>
			        			<#if (comment.overallAppraise)==0 >好<#else>不好	</#if>
			        		</#if>
			        		</span>
			        	</div>
			        	<div class="comment_grade_show">
			        		<#if (comment.gradeList)??>
				        	<#list comment.gradeList as grade>
								<div id="score" class="comment_grade_item">
									<div style="float:left; ">
									<span class="fieldText">${grade.lable}</span>：</div>
									<div id="hint_${grade_index}"></div>
		    						<div class="clear"></div>
									<div id="star_grade_${grade_index}"></div>
								</div>
								
								<script type="text/javascript">
				        			$('#star_grade_${grade_index}').raty({
										path : '${base}/mp/ratyimg/',
										start : ${grade.value},
										hintList : ['很差', '不好', '凑合', '很好', '力挺'],
									    targetKeep: true,
										target: '#hint_${grade_index}',
									    readOnly : true
									});
								</script>
				        	</#list>
				        	</#if>
				        	
			        	</div>
			        	<div class="clear"></div>
		        	</div>
		        	<div class="comment_content">
		        		<#if (comment.title)?? && (comment.title?length>0) >
		        		<div id="comment_title" class="comment_title">
						<span class="gray">标题：</span>${(comment.title)!''}
						</div>
						</#if>
						<#if (comment.impression)?? && (comment.impression?length>0)>
		        		<div id="comment_impression" class="comment_impression">
						<span class="gray">印象：</span>${(comment.impression)!''}</span>
						</div>
						</#if>
		        		<div id="comment_comtent" class="comment_comtent">
						${(comment.content)!''}
						</div>
		        	</div>
		        	<div class="reply_affirm left">
	      				<div class="clear"></div>
		        		<b>这篇点评怎么样？</b>
		        		<a id="useful_${(comment.id)!''}"
		        			<#if (Session['use_'+comment.id])?? >
		        				href="javascript:;"
		        			<#else>
		        			  	href="javascript:useful('${base}/comment/useful','${(comment.id)!''}',${(comment.voteWell)!'0'})"
		        			</#if>
		        		><span><img class="flower" src="${base}/images/pink_flower.ico" />有用（<span id="ful_${(comment.id)!''}">${(comment.voteWell)!'0'}</span>）</span></a>
		        		<a id="useless_${(comment.id)!''}" 
		        			<#if (Session["use_"+comment.id])?? >
		        			  	href="javascript:;"
		        			<#else>
		        			  	href="javascript:useless('${base}/comment/useless.ajax','${(comment.id)!''}',${(comment.voteBad)!'0'})" 
		        			</#if>
		        		>
		        			<span><img class="flower" src="${base}/images/fade_flower.png" />没用（<span id="less_${(comment.id)!''}">${(comment.voteBad)!'0'}</span>）</span>
		        		</a>
		        	</div>
		        	<a href="${base}/brand.html?id=${(comment.brand.id)!'noid'}">
		        		<div class="right back">返回品牌信息</div>
		        	</a>
	        	</div>
	      		<div class="clear"></div>
	      	</div>
        </div>
			
		<div id="reply_content_div" class="reply_content">
		   
		  <#if !(comment.replys)?? || ((comment.replys)?size<1)>
		  		<div class="null_reply">
		    	还没有回应哦，快来抢沙发……
		    	</div>
		  </#if>
		  <div class="div_comment_reply_input" >
		   <input id="seccussRequestUrl" type="hidden" value="${pageBar.getPageUrl(pageBar.getTotalPageCount()+1)}" />
		   <input type="hidden" id="requestUrl" value="${base}/comment/reply.ajax" />
		   <form id="comment_reply_input" name="comment_reply_input" action="${base}/comment/reply.ajax" method="POST">
		    	<input type="hidden" name="reply.commentId" value="${(comment.id)!''}" />
		    	<div class="reply_input_row">
		        	<div class="reply_input_lable">
		        		<img class="reply_user_logo" src="${base}/images/default_user_ico.jpg"  onerror="javascript:nofind(this,'${base}/images/nopic.gif');" />
		        		<center class="reply_creator">
		        			匿名
		        		</center>
		        	</div>
		        	<div id="reply_input_right" class="reply_input_right">
		        		<textarea name="reply.content" id="reply.content" class="reply_content_input"></textarea>
		        		<br/>
					    <div style="float:left;">
		        			<span class="verror"></span>
		        			<span>长度为2-100个字符</span>
					    </div>
					    <div style="float:right;">
					      	<input type="submit" value="提交" />
					    </div>
		        	</div>
		        </div>
	      		<div class="clear"></div>
		    </form>
		    
		   </div>
		   <div id="reply_title" class="reply_title"><b>大伙儿的回应：</b></div>
		   <#if (replys)??>
		       <#list replys as reply>
		        <div class="reply_content_item">
		        	<div class="user_logo">
		        		<img class="reply_item_user_logo" src="${base}/images/default_user_ico.jpg"  onerror="javascript:nofind(this,'${base}/images/nopic.gif');" />
		        	</div>
		        	<div class="content">
			        	<div>
			        		<span class="reply_creator">${(reply.creator)!'品牌页[匿名网友]'}</span>:
			        		<span class="reply_create_date">${(reply.createDate?string("yyyy-MM-dd HH:mm"))!''}</span>
			        	</div>
			        	<div class="reply_content_div">
			        		${(reply.content)!''}
			        	</div>
	      				<div class="clear"></div>
		        	</div>
	      			<div class="clear"></div>
		        </div>
		        </#list>
		    </#if>
		    
			<#if (pageBar.getTotalPageCount()>1)>
			  <#include "/WEB-INF/template/mp/pagebar.ftl">
			</#if>
		    
		</div>
		
      </div>
      <div class="clear"></div>
    </div>
    <!--end of left content-->
    <div class="right_content">
      
      <div class="languages_box">      
      
      	<div class="recommend_div">
	      	<div class="red">推荐指数：</div>
	      	<div class="left recommned_level">
		      	<div id="star_recommend"></div>
		      	<div id="hint_recommend"></div>
		      	<div id="star_message"></div>
		      	<div class="clear"></div>
	     	</div>
		    <div class="clear"></div>
		     <script type="text/javascript">
		     $('#star_recommend').raty({
				path : '${base}/mp/ratyimg/',
				start : ${(comment.brand.level)!'0'},
				hintList : ['一星', '二星', '三星', '四星', '五星'],
				target:     '#hint_recommend',
			    targetKeep: true,
			    readOnly : true,
				click: function(score, evt) {
					$("#star_message").val(score);
				}
			});
			</script>
	      	<div>
	      	<span class="red">好评率: </span></a>99%
	      	<a href="#reply_title"> <span class="red">${pager.getRecordCount()} 条回复</span></a>
	      	</div>
      	</div>
      </div>
      
      <div class="cart">
      	<!--<span class="comment"><a href="#comment_input_div">我来推荐</a></span>-->
      	<span class="comment"><a href="#reply_input_right">回复评论</a></span>
      	<br />
      	<br />
      	<br />
      	<#include "/WEB-INF/template/mp/share_icon.ftl">
      </div>

      <div class="right_box">
        <div class="title">
        	<span class="title_icon">
        		<img src="${base}/mp/images/bullet4.gif" alt="" title="" />
        	</span>
        	去哪儿买？
        </div>
        <#if (brand.topLevelRecommendOnLineStore)??>
        <#list brand.topLevelRecommendOnLineStore as store>
        <div class="new_prod_box">
          <a href="${(store.pcUrl)!''}">${store.name}</a>
          <div class="new_prod_bg">
          	<span class="new_icon">
          		<img src="${base}/mp/images/promo_icon.gif" alt="" title="" />
          	</span>
            <img src="${(store.ico)!'${base}/mp'}" alt="" title="" class="thumb" border="0" />
          </div>
        </div>
        </#list>
        </#if>
        
      </div>
      <div class="right_box">
        <div class="title"><span class="title_icon"><img src="${base}/mp/images/bullet5.gif" alt="" title="" /></span>更多推荐</div>
        <ul class="list">
        <#if (brand.topLevelRecommendOnLineStore)??>
		  <#list brand.secondaryLevelRecommendOnLineStore as store>
          	<li><a href="${(store.pcUrl)!''}">${(store.name)!''}</a></li>
		  </#list>
        </#if>
        </ul>
      </div>
      
  	<#include "/WEB-INF/template/mp/adbanner_336X280.ftl">
      
  <#else>
  	<#include "/WEB-INF/template/mp/null_data_part.ftl">
  </#if>
  
    </div>
    <!--end of right content-->

    <div class="clear"></div>
  </div>
  <!--end of center content-->
  

  <#include "/WEB-INF/template/mp/footer_bar.ftl">
</div>

<script type="text/javascript" src="${base}/mp/js/comment_use.js"></script>

</body>
</html>
